package com.tanxi521.tnweb.entity;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "player_account")
@NameStyle(Style.normal)
public class Player {

    @Id
    private Integer id;
    private String username;
    private String realname;
    private String password;
    private String ip;
    private long lastlogin;
    private double x;
    private double y;
    private double z;
    private String world;
    private long regdate;
    private String regip;
    private float yaw;
    private float pitch;
    private String email;
    private Integer isLogged;
    private Integer hasSession;
    private String totp;

    @Override
    public String toString() {
        return "Player{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", realname='" + realname + '\'' +
                ", password='" + password + '\'' +
                ", ip='" + ip + '\'' +
                ", lastlogin=" + lastlogin +
                ", x=" + x +
                ", y=" + y +
                ", z=" + z +
                ", world='" + world + '\'' +
                ", regdate=" + regdate +
                ", regip='" + regip + '\'' +
                ", yaw=" + yaw +
                ", pitch=" + pitch +
                ", email='" + email + '\'' +
                ", isLogged=" + isLogged +
                ", hasSession=" + hasSession +
                ", totp='" + totp + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public long getLastlogin() {
        return lastlogin;
    }

    public void setLastlogin(long lastlogin) {
        this.lastlogin = lastlogin;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public double getZ() {
        return z;
    }

    public void setZ(double z) {
        this.z = z;
    }

    public String getWorld() {
        return world;
    }

    public void setWorld(String world) {
        this.world = world;
    }

    public long getRegdate() {
        return regdate;
    }

    public void setRegdate(long regdate) {
        this.regdate = regdate;
    }

    public String getRegip() {
        return regip;
    }

    public void setRegip(String regip) {
        this.regip = regip;
    }

    public float getYaw() {
        return yaw;
    }

    public void setYaw(float yaw) {
        this.yaw = yaw;
    }

    public float getPitch() {
        return pitch;
    }

    public void setPitch(float pitch) {
        this.pitch = pitch;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getIsLogged() {
        return isLogged;
    }

    public void setIsLogged(Integer isLogged) {
        this.isLogged = isLogged;
    }

    public Integer getHasSession() {
        return hasSession;
    }

    public void setHasSession(Integer hasSession) {
        this.hasSession = hasSession;
    }

    public String getTotp() {
        return totp;
    }

    public void setTotp(String totp) {
        this.totp = totp;
    }
}
